package com.htu.service.impl;

import com.htu.dao.IOrderDao;
import com.htu.domain.Order;
import com.htu.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements IOrderService
{
    @Autowired
    private IOrderDao dao;

    @Override
    public List<Order> doOrderQueryAll()
    {
        return dao.queryOrderAll();
    }

    @Override
    public boolean doOrderUpdate(Order order)
    {
        return dao.updateOrder(order);
    }

    @Override
    public boolean doOrderInsert(Order order)
    {
        return dao.insertOrder(order);
    }

    @Override
    public boolean doOrderDelete(int orderId)
    {
        return dao.deleteOrder(orderId);
    }
}
